#!/bin/bash

set -e

FILENAME="diamond-girl-${VERSION}.tar.bz2"
SIZE=$(du -hs --apparent-size ${FILENAME} | cut --fields=1)
MD5SUM=$(md5sum ${FILENAME} | cut --delimiter=" " --fields=1)
SHA1SUM=$(sha1sum ${FILENAME} | cut --delimiter=" " --fields=1)
echo "<h4>Source</h4>"
echo "<p><a href=\"${FILENAME}\">${FILENAME}</a> (${SIZE})<br>"
echo "  MD5: <tt>${MD5SUM}</tt><br>"
echo "  SHA1: <tt>${SHA1SUM}</tt><br>"
echo "  See <a href=\"#building\">building from source</a> below."
echo "</p>"

